<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/component/jbpm/jbpmCommon.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>修改工作流暂存表</title>
 <%@ include file="/jscommon2.jsp" %>
 <script type='text/javascript' src='js/updateTemporaryJbpm4Info.js'></script>
    <link href="${basePath }css/style.css" rel="stylesheet" type="text/css">
  </head>
  
  <body style="background-color:#FFFFFF">
  <br/>
<fieldset class="search_fieldset2 mag_top">
<legend>修改信息</legend>
<br/>   
<xweb:form name="updateForm" type="com.platform.components.jbpm.temporaryJbpm4Info.action.TemporaryJbpm4InfoAction">
    <input type="hidden" id="operateOfAction" name="operateOfAction" value="updateTemporaryJbpm4Info" >
     <!-- 修改时存放的id -->
  <input type="hidden" maxlength="250" id="dtoid" type="text" name="dto.id" value='<%=StringUtilTools.filterSpecial(request,"dto.id")%>' />

<!-- 默认查询列表传递的信息 -->
<xweb:setBean id="dtoOfUpdate" type="com.platform.components.jbpm.temporaryJbpm4Info.provider.TemporaryJbpm4InfoProvider">
	<xweb:property name="dto.httpRequest" value="<%=request %>" />
	<xweb:property name="dto.userIdOfOperateData" value="${userId }" />
	<xweb:property name="operateOfProvider" value="queryOneDTOById" />
	<xweb:property name="dto.id" value='<%=StringUtilTools.filterSpecial(request,"dto.id")%>' />
</xweb:setBean>


<table width="96%" border="0" align="center"  >
<!-- 修改一条数据 -->
<xweb:page rows="-1" provider="<%=dtoOfUpdate%>" paging="false">
<xweb:iterate type="com.platform.components.jbpm.temporaryJbpm4Info.dto.TemporaryJbpm4InfoDTO" id="temp">
<!-- 显示的字段信息 -->
<tr>
  <td align="right" nowrap > 主键 ：</td>
  <td align="left" > 
  <input type="text" class="validate[maxSize[11]]"  maxlength="11" id="dtoid" name="dto.id" value="${temp.id}" />
    </td>
  <td align="right" nowrap > 流程信息 ：</td>
  <td align="left" > 
  <input type="text" class="validate[maxSize[2000]]"  maxlength="2000" id="dtoxmlContent" name="dto.xmlContent" value="${temp.xmlContent}" />
    </td>
  <td align="right" nowrap > 数据有效 ：</td>
  <td align="left" > 
  <input type="text" class="validate[maxSize[1]]"  maxlength="1" id="dtovalidateState" name="dto.validateState" value="${temp.validateState}" />
    </td>
</tr>
<tr>
  <td align="right" nowrap > 修改人 ：</td>
  <td align="left" > 
  <input type="text" class="validate[maxSize[10]]"  maxlength="10" id="dtolastUpdBy" name="dto.lastUpdBy" value="${temp.lastUpdBy}" />
    </td>
  <td align="right" nowrap > 修改时间 ：</td>
  <td align="left" > 
  <input type="text" readonly onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true})" id="dtolastUpd" name="dto.lastUpd" value="${temp.lastUpd}"  />
  </td>
  <td align="right" nowrap > 新增人 ：</td>
  <td align="left" > 
  <input type="text" class="validate[maxSize[10]]"  maxlength="10" id="dtocreatedBy" name="dto.createdBy" value="${temp.createdBy}" />
    </td>
</tr>
<tr>
  <td align="right" nowrap > 新增时间 ：</td>
  <td align="left" > 
  <input type="text" readonly onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true})" id="dtocreated" name="dto.created" value="${temp.created}"  />
  </td>
  <td align="right" nowrap > 备注 ：</td>
  <td align="left" > 
  <input type="text" class="validate[maxSize[250]]"  maxlength="250" id="dtoremark" name="dto.remark" value="${temp.remark}" />
    </td>
  <td align="right" nowrap > 扩展字段 ：</td>
  <td align="left" colspan="1"> 
  <input type="text" class="validate[maxSize[100]]"  maxlength="100" id="dtoext1" name="dto.ext1" value="${temp.ext1}" />
    </td>
</tr>

<!-- 隐藏的字段信息 -->
  </xweb:iterate>
  </xweb:page>
  
<tr><td align="center" colspan="6" > &nbsp;</td></tr>
<tr>
  <td align="center" colspan="8" class="my_buttons">
        <input id="saveBtn" type="button" value="保存" onclick="saveUpdateData()" />
        <input id="restBtn" type="button" value="关闭" onclick="closeWindow()" />
  </td>
</tr>
</table>

</xweb:form>
</fieldset>


<br/>
<script type="text/javascript">
$(document).ready(function(){
//注册校验事件
	$("#updateForm").validationEngine({scroll:false,focusFirstField:false,promptPosition:'topLeft'});
});

</script>
  </body>
</html>
<xweb:setForm useRequest="true" formName="updateForm"/>
<%String alterMsg = (String)request.getAttribute(ConstantBeanId.MSG); %>
<%@ include file="/alertCommon.jsp" %> 